import java.util.TimerTask;

public class Clock extends TimerTask {

  int timeElapse;

  public Clock(int time) {
    timeElapse = time;
  }

  public void run() {
	timeElapse++;
  }

  public int getTimeElapsed() {
      return this.timeElapse; 
  }

}